home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.5 KB | 38 lines | [TEXT/GEOL] |
- Item 0770805 20-Feb-91 18:59PST
-
- From: CDA0542 Serge Froment, Informagique,IDV
-
- To: MACAPP.TECH$ MacApp Technical
-
- ------------------------------------------------------------------------------
-
- Sub: DoSetCursor Question
-
- Dear MacApp Gurus,
-
- I have an application that can draw shapes inside a view. When these shapes are
- selected, they have the usual black handles at each corner. I want the cursor
- changes to a small crosshair when it is over an handle.
-
- How should I handle the cursorRgn parameter to DoSetCursor? If I set it to the
- value returned by GetDefaultCursorRgn minus the position of all possible shape
- handles, then newly created or moved shapes are not seen until the cursor
- leaves the view and comes back.
-
- Should I empty gCursorRgn when I create or move shape to force MacApp to call
- DoSetCursor? I suspect it may be a bad idea to fiddle with MacApp globals, but
- I see no other way to force a call to DoSetCursor.
-
- Of course, I may don't care and leave cursorRgn empty. It works, but I wonder
- at what price...
-
- BTW, I looked at the MacApp sample DrawShapes program. It does set cursorRgn
- only when the cursor had been changed to a thick cross, when over a shape.
- Looking at this code, I suspected the cursor not to be updated properly when
- you drag a shape slightly, without leaving the original area. That's what
- happens, but only if you leave the original shape area from the top. I am
- perplexed.
-
- Serge
-
-